/**
 * Created by lional on 16/10/2.
 */

jGame.TextField = ccui.TextField.extend(/** @lends jGame.TextField# */{

    ctor: function (placeholder, fontName, fontSize) {
        this._super(placeholder, fontName, fontSize);
        //cc.log("jGame.TextField#ctor()");
    },

    /**
     * Sets the placeholder string. <br />
     * display this string if string equal "".
     * @param {String} value
     */
    setPlaceHolder: function (value) {
        if(value === undefined)return;
        this._super(jGame.translate(value));
    },

    /**
     * Changes the  value of ccui.Text.
     * @param {String} text
     */
    setString: function (text) {
        if(text === undefined)return;
        this._super(jGame.translate(text));
    },

});